import request from '@/request/upload'

export const uploadFile = (data,path='defaults',oldName='') => {
    return request({
        url: `/oss/upload/file?path=${path}&oldName=${oldName}`,
        method: 'post',
        data,
    })
}

export const uploadFileMD = (data,path='defaults',oldName='') => {
    return request({
        url: `/oss/upload/md?path=${path}&oldName=${oldName}`,
        method: 'post',
        data,
    })
}